package com.huawei.orderservice.client;


import com.huawei.common.pojo.Result;
import com.huawei.common.pojo.pay;
import com.huawei.common.pojo.updateMoney;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "user-service")
public interface UserClient {
    @PostMapping("/users/updateMoney")
    Result updateMoney(@RequestBody updateMoney money);


    @GetMapping("/users/getUserInfo")
    Result getUserInfo(@RequestHeader("Authorization") String token);

    @PostMapping("/users/pay")
    Result pay(@RequestBody pay pay);
}
